﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Electrical;
using Autodesk.Revit.UI.Selection;
using YArchitech.Revit;

namespace YArchitech.HVAC
{
	public class ConduitSelectionFilter : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			return elem is Conduit && !YJKRevitTools.isRiserPiping(elem);
		}

		public bool AllowReference(Reference reference, XYZ position)
		{
			return false;
		}
	}
}
